﻿@using FujiyBlog.Web.Extensions
@model string

@Html.TextBoxFor(model => Model)

<script type="text/javascript">
    var tinymceContent = null;
    $().ready(function () {
        tinymceContent = $('#@Html.FieldIdFor(x => Model)').tinymce({
            // Location of TinyMCE script
            script_url: '@(Url.Content(Links.Scripts.tinymce.tiny_mce_js))',

            // General options
            theme: "advanced",
            plugins: "media,inlinepopups,fullscreen,contextmenu,emotions,table,iespell,advlink",
            relative_urls: false,

            // Theme options
            theme_advanced_buttons1: "fullscreen,code,|,cut,copy,paste,pastetext,pasteword,|,undo,redo,|,bold,italic,underline,strikethrough,|,blockquote,sub,sup,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,outdent,indent",
            theme_advanced_buttons2: "link,unlink,removeformat,cleanup,charmap,emotions,|,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor",
            theme_advanced_buttons3: '',
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            theme_advanced_statusbar_location: "bottom",
            theme_advanced_resizing: true
        });
    });
</script>